import java.util.ArrayList;

public class Main {
	
	
	public static void main(String[] args) {
		Instructor testInstructor = new Instructor();
		Consultant testConsultant = new Consultant();
		
		testInstructor.setName("Simon");
		testInstructor.addCourse("Java for Beginners");
		testInstructor.addCourse("NullPointerExceptions and how to fix them");
		
		testConsultant.setName("Jacob");
		testConsultant.setCompetence(10);
		
		System.out.println("Instructor name: " + testInstructor.getName());
		ArrayList instructorCourses = testInstructor.getCourse();
		for (Object courses : instructorCourses) {
			System.out.println("Course name: " + courses);
		}
		
		System.out.println("Consultant name: " + testConsultant.getName());
		System.out.println("Sompetence: " + testConsultant.getCompetence());
	}

}
